<?php echo $this->tinyMce;?>
<h1><?php echo $title;?></h1>

<?php
echo form_open('cnews/edit');
echo "<div class='div-manipulate'>";
echo "<p><label for='title'>Title</label><br/>";
$data = array('name'=>'title','id'=>'title','size'=>25,'value' => $news['title']);
echo form_input($data) ."</p>";

echo "<p><label for='shortdesc'>Short Description</label><br/>";
$data = array('name'=>'shortdesc','id'=>'shortdesc','size'=>40,'value' => $news['shortdesc']);
echo form_input($data) ."</p>";

echo "<p><label for='fpath'>Path/FURL</label><br/>";
$data = array('name'=>'path','id'=>'fpath','size'=>50,'value' => $news['path']);
echo form_input($data) ."</p>";

echo "<p><label for='long'>Long Description</label><br/>";
$data = array('name'=>'longdesc','id'=>'long','rows'=>5, 'cols'=>'40','value' => $news['longdesc']);
echo form_textarea($data) ."</p>";

echo "<p><label for='activate'>Activate</label><br/>";
$options = array('1' => 'active', '0' => 'inactive');
echo form_dropdown('activate',$options,$news['activate'],'style="width:105px;height:25px; padding:2px;"') ."</p>";
echo "</div>";

echo form_hidden('news_id',$news['news_id']);
echo form_submit(array('class'=>'btn','name'=>'submit'),'Update News');
echo form_close();


?>